﻿package Message.Game
{
    import Engine.RMI.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class IBusinessPrxHelper extends RMIProxyObject implements IBusinessPrx
    {
        public static const NAME:String = "Message.Game.IBusiness";

        public function IBusinessPrxHelper()
        {
            name = "IBusiness";
            return;
        }// end function

        public function doApply_async(param1:AMI_IBusiness_doApply, param2:SEntityId) : void
        {
            var _loc_3:* = makeContext(session);
            var _loc_4:* = makeCall("doApply");
            var _loc_5:* = new SerializeStream();
            param2.__write(_loc_5);
            Outgoing.invokeAsync(_loc_3, _loc_4, _loc_5, param1);
            return;
        }// end function

        public function doOperation_async(param1:AMI_IBusiness_doOperation, param2:EBusinessOperation, param3:String) : void
        {
            var _loc_4:* = makeContext(session);
            var _loc_5:* = makeCall("doOperation");
            var _loc_6:* = new SerializeStream();
            param2.__write(_loc_6);
            _loc_6.writeString(param3);
            Outgoing.invokeAsync(_loc_4, _loc_5, _loc_6, param1);
            return;
        }// end function

        public function updateItem_async(param1:AMI_IBusiness_updateItem, param2:String, param3:String, param4:int) : void
        {
            var _loc_5:* = makeContext(session);
            var _loc_6:* = makeCall("updateItem");
            var _loc_7:* = new SerializeStream();
            _loc_7.writeString(param2);
            _loc_7.writeString(param3);
            _loc_7.writeInt(param4);
            Outgoing.invokeAsync(_loc_5, _loc_6, _loc_7, param1);
            return;
        }// end function

        public function updateMoney_async(param1:AMI_IBusiness_updateMoney, param2:String, param3:EPriceUnit, param4:int) : void
        {
            var _loc_5:* = makeContext(session);
            var _loc_6:* = makeCall("updateMoney");
            var _loc_7:* = new SerializeStream();
            _loc_7.writeString(param2);
            param3.__write(_loc_7);
            _loc_7.writeInt(param4);
            Outgoing.invokeAsync(_loc_5, _loc_6, _loc_7, param1);
            return;
        }// end function

    }
}
